/* Copyright (c) 2016-2020 Enfry Ltd. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Enfry. 
 * You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Enfry.
 */
package com.enfry.common.util.constants;

/**
 * 
 * @Title com.enfry.util.constants.CodeConstants
 * @author Penghu
 * @date 2016年11月10日
 */
public interface CodeConstants
{
    String _UTF_8_              = "UTF-8";//BOM EF BB BF
    
    //Unicode下的编码
    String _UTF_16_             = "UTF-16";//无指BOM由字节自行检查
    String _UTF_16LE_           = "UTF-16LE";//BOM FF FE
    String _UTF_16BE_           = "UTF-16BE";//BOM FE FF
    String _UTF_32_             = "UTF-32";//无指定BOM由字节自行检查
    String _UTF_32LE_           = "UTF-32LE";//BOM FF FE 00 00
    String _UTF_32BE_           = "UTF-32BE";//BOM 00 00 FE FF
    
    //ANSI下的本地语言
    String _ISO_8859_1_         = "ISO-8859-1";
    String _GBK_                = "GBK";
    String _GB2312_             = "GB2312";
    
    String _HEX_                = "HEX";
    String _BASE64_             = "Base64";
    String _MD5_                = "MD5";
    String _SHA1_               = "SHA1";
    
    String _HMAC_MD5_           = "HmacMD5";
    String _HMAC_SHA1_          = "HmacSHA1";  
    String _HMAC_SHA256_        = "HmacSHA256";  
    String _HMAC_SHA384_        = "HmacSHA384";
    String _HMAC_SHA512_        = "HmacSHA512";
    
    byte[] _PNG_                = {(byte)0x89, (byte)0x50, (byte)0x4E, (byte)0x47};
    byte[] _GIF_                = {(byte)0x47, (byte)0x49, (byte)0x46};//前3字节GIF
    byte[] _JPG_                = {(byte)0xFF, (byte)0xD8};
}
